package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.DeviceCooperativeInstitution;
import com.zhijian.medical.entity.vo.request.DeviceCooperativeInstitutionSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceCooperativeInstitutionVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 合作机构 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-01 15:39:16
 */
public interface DeviceCooperativeInstitutionService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceCooperativeInstitution selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceCooperativeInstitutionVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param deviceCooperativeInstitution
     * @return
     */
    Long insert(DeviceCooperativeInstitution deviceCooperativeInstitution);

    /**
     * 新增，并且会新增一个人员账户
     *
     * @param deviceCooperativeInstitution
     * @return
     */
    Long insertAll(DeviceCooperativeInstitution deviceCooperativeInstitution);

    /**
     * 更改
     *
     * @param deviceCooperativeInstitution
     * @return
     */
    boolean update(DeviceCooperativeInstitution deviceCooperativeInstitution);

    /**
     * 总数
     *
     * @param deviceCooperativeInstitutionSearchVo
     * @return
     */
    Integer count(DeviceCooperativeInstitutionSearchVo deviceCooperativeInstitutionSearchVo);

    /**
     * 列表
     *
     * @param deviceCooperativeInstitutionSearchVo
     * @return
     */
    List<DeviceCooperativeInstitutionVo> selectList(DeviceCooperativeInstitutionSearchVo deviceCooperativeInstitutionSearchVo);

    /**
     * 分页展示
     *
     * @param deviceCooperativeInstitutionSearchVo
     * @return
     */
    Page<DeviceCooperativeInstitutionVo> selectPage(DeviceCooperativeInstitutionSearchVo deviceCooperativeInstitutionSearchVo);
}